export default {
    data: {
        index: 0,
        menus: [{
                    name: '首页',
                    icon: 'common/icon/home.png',
                    activeIcon: 'common/icon/home-active.png'
                }, {
                    name: '学习',
                    icon: 'common/icon/study.png',
                    activeIcon: 'common/icon/study-active.png'
                }, {
                    name: '消息',
                    icon: 'common/icon/message.png',
                    activeIcon: 'common/icon/message-active.png'
                }, {
                    name: '我的',
                    icon: 'common/icon/my.png',
                    activeIcon: 'common/icon/my-active.png'
                }]
    },
    changeMenu(e) {
        this.index = e.detail.index;
    }
}
